iommu/ipmmu-vmsa: Use refcount for the micro-TLBs
authorOleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
Thu, 27 Jan 2022 19:55:51 +0000 (21:55 +0200)
committerJulien Grall <jgrall@amazon.com>
Mon, 31 Jan 2022 18:33:20 +0000 (18:33 +0000)
commitc52af96fdcac9eff31465f39c0ffcceadca9ac9f
tree3c117f25af9f49118fe21f3d651a20c1bcadad4b
parentc78901ab09bd0c469649f4ecbd325a6edb953592
iommu/ipmmu-vmsa: Use refcount for the micro-TLBs

Reference-count the micro-TLBs as several bus masters can be
connected to the same micro-TLB (and drop TODO comment).
This wasn't an issue so far, since the platform devices
(this driver deals with) get assigned/deassigned together during
domain creation/destruction. But, in order to support PCI devices
(which are hot-pluggable) in the near future we will need to
take care of.

Signed-off-by: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
xen/drivers/passthrough/arm/ipmmu-vmsa.c